package com.eshin;

import java.util.Date;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class HelloReceiver {

	@RabbitListener(queues = {"queue4"})
    @RabbitHandler
    public void process4(@Payload String hello) {
        System.out.println("Receiver4  : " + hello);
    }
	@RabbitListener(queues = {"queue5"})
	@RabbitHandler
	public void process5(@Payload String hello) {
		System.out.println("Receiver5  : " + hello);
	}
	@RabbitListener(queues = {"queue6"})
	@RabbitHandler
	public void process6(@Payload String hello) {
		System.out.println("Receiver6  : " + hello);
	}

    
}